package com.racedepartment.ui;

import java.awt.Dimension;
import java.awt.EventQueue;

import javax.swing.JFrame;

import java.awt.BorderLayout;

import javax.swing.JTabbedPane;
import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.SwingConstants;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.CardLayout;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import javax.swing.JList;
import javax.swing.JTextArea;
import javax.swing.JComboBox;
import javax.swing.JTextField;

public class Test {

	private JFrame frame;
	private static final int X = 1280;
	private static final int Y = 1024;
	private JTextField textField;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Test window = new Test();
					window.frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public Test() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frame = new JFrame();
		
		JPanel panel = new JPanel();
		frame.getContentPane().add(panel, BorderLayout.NORTH);
		frame.setMinimumSize(new Dimension(X, Y));
		frame.setResizable(false);
		
		JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
		frame.getContentPane().add(tabbedPane, BorderLayout.CENTER);
		
		JPanel F1 = new JPanel();
		tabbedPane.addTab("New tab", null, F1, null);
		GridBagLayout gbl_F1 = new GridBagLayout();
		gbl_F1.columnWidths = new int[] {100, 100, 100, 100, 100, 100, 100, 100, 100, 100};
		gbl_F1.rowHeights = new int[]{0, 0, 0, 0, 0, 0, 0};
		gbl_F1.columnWeights = new double[]{1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, Double.MIN_VALUE};
		gbl_F1.rowWeights = new double[]{1.0, 0.0, 0.0, 0.0, 1.0, 1.0, Double.MIN_VALUE};
		F1.setLayout(gbl_F1);
		
		JComboBox comboBox_1 = new JComboBox();
		GridBagConstraints gbc_comboBox_1 = new GridBagConstraints();
		gbc_comboBox_1.insets = new Insets(0, 0, 5, 5);
		gbc_comboBox_1.fill = GridBagConstraints.HORIZONTAL;
		gbc_comboBox_1.gridx = 2;
		gbc_comboBox_1.gridy = 5;
		F1.add(comboBox_1, gbc_comboBox_1);
		
		JComboBox comboBox = new JComboBox();
		GridBagConstraints gbc_comboBox = new GridBagConstraints();
		gbc_comboBox.anchor = GridBagConstraints.NORTH;
		gbc_comboBox.insets = new Insets(0, 0, 5, 5);
		gbc_comboBox.fill = GridBagConstraints.HORIZONTAL;
		gbc_comboBox.gridx = 2;
		gbc_comboBox.gridy = 5;
		F1.add(comboBox, gbc_comboBox);
		
		textField = new JTextField();
		textField.setText("123123");
		GridBagConstraints gbc_textField = new GridBagConstraints();
		gbc_textField.anchor = GridBagConstraints.NORTH;
		gbc_textField.fill = GridBagConstraints.HORIZONTAL;
		gbc_textField.insets = new Insets(0, 0, 5, 5);
		gbc_textField.gridx = 3;
		gbc_textField.gridy = 5;
		F1.add(textField, gbc_textField);
		textField.setColumns(10);
		
		JLabel lblNewLabel_1 = new JLabel("");
		lblNewLabel_1.setIcon(new ImageIcon("C:\\Development\\CSW Remapper\\Formula-4-1000x6661.png"));
		GridBagConstraints gbc_lblNewLabel_1 = new GridBagConstraints();
		gbc_lblNewLabel_1.gridheight = 20;
		gbc_lblNewLabel_1.gridwidth = 10;
		gbc_lblNewLabel_1.gridx = 2;
		gbc_lblNewLabel_1.gridy = 5;
		F1.add(lblNewLabel_1, gbc_lblNewLabel_1);
		
		JPanel GT2 = new JPanel();
		tabbedPane.addTab("New tab", null, GT2, null);
		
		JLabel lblNewLabel = new JLabel("");
		GT2.add(lblNewLabel);
		lblNewLabel.setIcon(new ImageIcon("C:\\Development\\CSW Remapper\\Formula-4-1000x666.png"));
		
		JPanel Porsche918 = new JPanel();
		tabbedPane.addTab("New tab", null, Porsche918, null);
		
		JPanel HUB_1 = new JPanel();
		tabbedPane.addTab("New tab", null, HUB_1, null);
	}

}
